package com.hyfrogx.modules.information.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hyfrogx.common.base.BaseEntity;
import com.hyfrogx.modules.app.entity.User;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author liubin
 * @date 2019/10/29 13:42
 */
@Data
@TableName("hy_info_comment")
public class InfoCommentEntity {

  @TableId
  private Integer id;

  private String phone;

  private Integer infoId;

  private Integer uid;

  private String comment;

  private Date commentTime;

  /**
   * 展示状态0展示 1不展示
   */
  private Integer state;

  private Integer userType;

  private Integer pid;

  private Integer toUid;

  @TableField(exist = false)
  private Integer replyuid;

  /**
   * 评论人ip
   */
  private String ip;

  @TableField(exist = false)
  private List<InfoCommentReplyEntity> infoCommentReplyList;

  // 评论的回复集合
  @TableField(exist = false)
  private List<InfoCommentEntity> inList;

  @TableField(exist = false)
  private User user;

  @TableField(exist = false)
  private String username;

  @TableField(exist = false)
  private String title;
}
